package eva.savant.business.administrador.webservice;

import javax.ws.rs.*;
import javax.ws.rs.core.Response;

@Path("/administrador/hello")
public class HelloService {

  @GET
  @Path("/{param}")
  public Response getMessage(@PathParam("param") String msg) {

    return Response.status(200).entity("Hello, " + msg).build();
  }

  @GET
  @Produces("text/plain")
  public String getMessageTxt(@QueryParam("nombre") String nombre) {

    return "Hello Txt, " + nombre;
  }

}

//http://localhost:8080/savanti/serviceREST/administrador/hello/roger

//http://localhost:8080/savanti/serviceREST/administrador/hello/nombre=roger